package cn.jlearn.proxy.common.packet;

import org.tio.core.intf.Packet;

/**
 * @author qianyingchao
 * @version 1.0
 * @date 2021/5/8 5:43 下午
 */
public class BsPacket extends Packet {

    private static final long serialVersionUID = -1L;

    public static final int HEADER_LENGTH = 5;

    private byte type;

    private byte[] body;

    public BsPacket() {
    }

    public BsPacket(byte type, byte[] body) {
        this.type = type;
        this.body = body;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }

}
